import request from '@/utils/request'

// 查询职位列列表
export function listPositionlist(query) {
  return request({
    url: '/system/positionlist/list',
    method: 'get',
    params: query
  })
}

// 查询职位列详细
export function getPositionlist(positionid) {
  return request({
    url: '/system/positionlist/' + positionid,
    method: 'get'
  })
}

// 新增职位列
export function addPositionlist(data) {
  return request({
    url: '/system/positionlist',
    method: 'post',
    data: data
  })
}

// 修改职位列
export function updatePositionlist(data) {
  return request({
    url: '/system/positionlist',
    method: 'put',
    data: data
  })
}

// 删除职位列
export function delPositionlist(positionid) {
  return request({
    url: '/system/positionlist/' + positionid,
    method: 'delete'
  })
}
